package javafoundations;

import junit.framework.TestCase;

/**
 * Created by zhangyunqi on 2017/10/10.
 */
public  class LinkedStackTest extends TestCase {

    LinkedStack<String> list = new LinkedStack<>();




    public void testIsEmpty() {

        assertEquals ( true, list.isEmpty () );

        list.push ( "啊啊啊啊啊" );
        list.push ( "20162307" );

        assertEquals ( false, list.isEmpty () );



    }

    public void testpop() {
        list.push ( "3");
        list.push ( "3" );
        list.push ( "9");
        list.pop ();
    }
    public void testpeek() {
        list.push ( "9");

        assertEquals ( "9", list.peek () );


    }
    public void testsize() {
        list.push ( "2" );
        list.push ( "3" );
        list.push ( "9" );
        list.push ( "7" );
        assertEquals ( 4, list.size () );
    }
    public void testtoString() {

    }
}